package com.hy.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class TestDemo {
    public static void main(String[] args) {
        final String format = LocalDateTime.now().format(DateTimeFormatter.ofPattern("y-M-dd H:m:ss"));
        System.out.println("format = " + format);
    }
}
